package com.liuqm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author liuqiaomiao
 * @since 2024-10-21
 */
@TableName("czkt_order")
public class CzktOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编码
     */
    private String orderCode;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 下单时间
     */
    private Date postTime;

    /**
     * 订单类型（1、普通订单  2、秒杀）
     */
    private Integer orderType;

    /**
     * 购买人id
     */
    private Integer buyerId;

    /**
     * 店铺id
     */
    private Integer sellerId;

    /**
     * 地址表ID
     */
    private Integer adressId;

    private String adressPre;

    private String adressCity;

    private String adressArea;

    private String adressDetail;

    /**
     * 商品数量
     */
    private Integer productNum;

    /**
     * 联系电话
     */
    private String adressTel;

    /**
     * 收货人姓名
     */
    private String adressName;

    /**
     * 订单金额
     */
    private Object orderAmount;

    /**
     * 活动id
     */
    private Integer activityId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getPostTime() {
        return postTime;
    }

    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Integer getAdressId() {
        return adressId;
    }

    public void setAdressId(Integer adressId) {
        this.adressId = adressId;
    }

    public String getAdressPre() {
        return adressPre;
    }

    public void setAdressPre(String adressPre) {
        this.adressPre = adressPre;
    }

    public String getAdressCity() {
        return adressCity;
    }

    public void setAdressCity(String adressCity) {
        this.adressCity = adressCity;
    }

    public String getAdressArea() {
        return adressArea;
    }

    public void setAdressArea(String adressArea) {
        this.adressArea = adressArea;
    }

    public String getAdressDetail() {
        return adressDetail;
    }

    public void setAdressDetail(String adressDetail) {
        this.adressDetail = adressDetail;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public String getAdressTel() {
        return adressTel;
    }

    public void setAdressTel(String adressTel) {
        this.adressTel = adressTel;
    }

    public String getAdressName() {
        return adressName;
    }

    public void setAdressName(String adressName) {
        this.adressName = adressName;
    }

    public Object getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Object orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    @Override
    public String toString() {
        return "CzktOrder{" +
        "id = " + id +
        ", orderCode = " + orderCode +
        ", orderStatus = " + orderStatus +
        ", postTime = " + postTime +
        ", orderType = " + orderType +
        ", buyerId = " + buyerId +
        ", sellerId = " + sellerId +
        ", adressId = " + adressId +
        ", adressPre = " + adressPre +
        ", adressCity = " + adressCity +
        ", adressArea = " + adressArea +
        ", adressDetail = " + adressDetail +
        ", productNum = " + productNum +
        ", adressTel = " + adressTel +
        ", adressName = " + adressName +
        ", orderAmount = " + orderAmount +
        ", activityId = " + activityId +
        "}";
    }
}
